from collections import Counter
from functools import reduce
import math
h = [1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4]
print(Counter(h).most_common(2))
print(Counter(h).values())#dict_values([2, 2, 2, 2])
print(reduce(math.gcd, Counter(h).values()))
